<html>
<head>
<title>添加输入框</title>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
<script>
//点击事件
var addname = "<div><input class=\"input\" name =\"input\"/><br></div>"
add = function (){
$('.div').append(addname)};
</script>
</head>

<body>
<center> 
<div class="div">
</div>
<input type="button" value = "添加一个输入框" onclick="add();"/><br>
</center> 
</body>
</html>